<template>
  <!-- 余料设置 -->
  <div class="surplusMaterial">
    <el-form ref="form" :model="form" :rules="rules">
      <el-row>
        <el-col :span="24">
          <el-form-item label="余料最小长度（mm）" prop="workArea" label-width="200px">
            <el-input type="number" min="0" v-model="form.workArea" placeholder="请输入" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <div class="tips" style="margin-bottom: 22px;">注意：当优化断料加工单产生的尾料长度小于设定长度时，不计入余料</div>
        </el-col>
        <el-col :span="24">
          <el-form-item label="余料区间差值（mm）" prop="workArea" label-width="200px">
            <el-input type="number" min="0" v-model="form.workArea" placeholder="请输入" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>

    <div class="submitForm">
      <el-button type="primary" @click="preservation">保存</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "SurplusMaterial",
  components: {},
  props: {},
  data() {
    return {
      form: {},
      rules: {
        workArea: [
          { required: true, message: "不能为空", trigger: "blur" },
        ],
      },
    };
  },
  filters: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    preservation() {
      console.log(this.tableData)
    }
  },
};
</script>

<style scoped lang="scss">
.surplusMaterial {
  width: 50%;
}
</style>
